package com.zmovie.framework.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 
 * @TableName actor_role
 */
@TableName(value ="actor_role")
@Data
@ApiModel("演员角色")
public class ActorRole implements Serializable {
    /**
     * 演员角色id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Integer id;

    /**
     * 演员角色名称
     */
    @ApiModelProperty("演员角色名称")
    @NotBlank(message = "演员角色名称不能为空")
    private String name;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}